x = eval(input())
n = eval(input())
s = 1
i = 1
while i <= n:
    s = s * x 
    i = i+1
print(s)
